#define	_CRT_SECURE_NO_WARNINGS 1 

#include "Stack.h"

int main()
{
	Stack s;
	StackInit(&s);
	StackPush(&s, 1);
	StackPush(&s, 2);
	StackPush(&s, 3);
	printf("%d ", StackTop(&s));
	StackPop(&s);
	StackPush(&s, 4);
	printf("%d ", StackTop(&s));
	StackPop(&s);
	StackPush(&s, 5);

	
	printf("%d ", StackTop(&s));
	StackPop(&s);

	while (StackEmpty(&s) == 0)
	{
		printf("%d ", StackTop(&s));
		StackPop(&s);
	}
	
	return 0;
}